package dao.impl;

import java.sql.SQLException;
import java.util.List;

import com.ibatis.sqlmap.client.SqlMapClient;

import module.Shop;
import dao.ABSBasicDAO;
import domain.vo.queryObject;
/**
 * 
* @ClassName: ShopDAOImpl 
* @Description: 门店
* @author chenchao
* @date 2014年1月16日 下午2:33:21 
*
 */
public class ShopDAOImpl  extends ABSBasicDAO<Shop>{
	
	
	/**
	 * 
	* <p>Title: </p> 
	* <p>Description: </p> 
	* @param sqlMapClient
	 */
	public  ShopDAOImpl(SqlMapClient sqlMapClient) {
		super(sqlMapClient);
	}
	@Override
	public List<Shop> getAll() throws SQLException {
		return sqlMapClient.queryForList("Shop.getAll");
	}

	@Override
	public Shop getById(String id) throws SQLException {

		return (Shop)sqlMapClient.queryForObject("Shop.getById", id);
	}

	@Override
	public Shop getByPK() {
		// TODO Auto-generated method stub
		return super.getByPK();
	}

	@Override
	public void insertT(Shop t) throws SQLException {
		sqlMapClient.insert("Shop.insertShopInfo", t);
	}

	@Override
	public void updateT(Shop t) throws SQLException {
		// TODO Auto-generated method stub
		super.updateT(t);
	}

	@Override
	public void deleteT(int id) throws SQLException {
		// TODO Auto-generated method stub
		super.deleteT(id);
	}

	@Override
	public List<Shop> getObjectByQueryObject(queryObject queryObject)
			throws SQLException {
		return (List<Shop>)sqlMapClient.queryForList("Shop.getObjectByQueryObject", queryObject);
	}

	@Override
	public int countByQueryObject(queryObject queryObject) throws SQLException {
		// TODO Auto-generated method stub
		return super.countByQueryObject(queryObject);
	}

}
